package katchup.com.util;

import java.io.IOException;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		for(FeedAndPath fp: List.listar()){
			RSSCrawler crawler = new RSSCrawler(fp.feed);
			crawler.ConnectToServer();
			String response = crawler.getServerResponse(crawler.getConnection());
			RSSCrawler.fileSaver("./rss/"+fp.path+".xml",response);
			
		}
		
		
	}

}
